package com.fy.service.service.impl;

import com.fy.common.dto.UserAndGroupSearchDto;
import com.fy.common.vo.UserSearchResultVo;
import com.fy.dao.mapper.SkImCommonMapper;
import com.fy.framework.common.model.R;
import com.fy.service.service.SkImCommonService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhshuo
 * @date 2021/12/13 14:10
 */
@Slf4j
@Service
@AllArgsConstructor
public class SkImCommonServiceImpl implements SkImCommonService {

    SkImCommonMapper commonMapper;

    @Override
    public R<?> userSearch(UserAndGroupSearchDto searchDto) {
        List<UserSearchResultVo> resultVos = commonMapper.userSearch(searchDto);
        return R.success(resultVos);
    }
}
